<script setup>
import Aside from "../components/Aside.vue"
import Header from "../components/Header.vue"
import Main from "../components/Main.vue"
import {ref} from "vue"

const isCollapse = ref(false)
const showCollapse = () => {
  isCollapse.value = !isCollapse.value
}


</script>

<template>
  <div class="home">
    <el-container>
<!--      左边-->
      <el-aside width="200px"><Aside :isCollapse="isCollapse"/></el-aside>
      <!--        顶部-->
      <el-container>
        <el-header><Header :showCollapse="showCollapse" :isCollapse="isCollapse"/></el-header>
<!--        中间-->
        <el-main><Main/></el-main>
      </el-container>

    </el-container>
  </div>
</template>

<style lang="less" scoped>
.el-aside{
  width: auto;
  background-color: #409eff;
  width: auto;
  overflow: hidden;
}
.el-container{
  height: 100vh;
}
.el-header{
  display: flex;
  background-color: antiquewhite;
}
</style>